package com.shujia.java.day19.demo2;

public class MyThread extends Thread{
    int sum=0;
    @Override
    public void run() {
        while(true){
            if(sum<100){
                System.out.println(Thread.currentThread().getName()+"------------"+(sum++));
            }

        }
    }
}
